<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>js array</title>
		<script>
		  var a=new Array(5);
		  a[0]="安徽交通广播电台";
		  a[1]="中央人民广播电台";
		  a[2]="阜阳广播电台";
		  a[100]="苏州电台";
		  console.log(a.length);
		  alert(a);
		  var b=["英国","阳朔","王凯旋","庞志豪"];
		  alert(b.length);
		  b.length=2;
		  alert(b);
		  
		</script>
	</head>
	<body>
	</body>
</html>
